.class public Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;
.super Lcom/esfile/screen/recorder/picture/picker/fragment/GridPickerFragment;
.source "ImagePickerFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/esfile/screen/recorder/picture/picker/fragment/GridPickerFragment<",
        "Lcom/esfile/screen/recorder/picture/picker/data/c;",
        ">;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;"
    }
.end annotation


# instance fields
.field private q:Les/wa;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/GridPickerFragment;-><init>()V

    return-void
.end method

.method public static a(Landroid/os/Bundle;)Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;
    .locals 1

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;-><init>()V

    .line 3
    invoke-virtual {v0, p0}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V

    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;)Les/wa;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    return-object p0
.end method


# virtual methods
.method public a(ILcom/esfile/screen/recorder/picture/picker/entity/b;)V
    .locals 0

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    invoke-virtual {p2, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->d(I)V

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method public g()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "SHOW_GIF"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    new-instance v2, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment$b;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment$b;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;)V

    invoke-static {v1, v0, v2}, Les/za;->a(Landroidx/fragment/app/FragmentActivity;ZLes/za$b;)V

    :cond_0
    return-void
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 9

    const/4 p3, 0x1

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    invoke-virtual {p1}, Les/wa;->b()V

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->d:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    invoke-virtual {p1}, Les/wa;->c()Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->d:Ljava/util/List;

    const/4 p3, 0x0

    invoke-interface {p2, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 5
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v7

    new-instance v8, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    invoke-virtual {p1}, Ljava/lang/String;->hashCode()I

    move-result v1

    const/4 v3, 0x4

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    .line 6
    invoke-virtual {v0}, Les/wa;->d()J

    move-result-wide v4

    sget-object v6, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->IMAGE:Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    move-object v0, v8

    move-object v2, p1

    invoke-direct/range {v0 .. v6}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;-><init>(ILjava/lang/String;IJLcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;)V

    .line 7
    invoke-interface {v7, p3, v8}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 8
    invoke-virtual {p2, p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->a(Ljava/lang/String;)V

    .line 9
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 0

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->onCreate(Landroid/os/Bundle;)V

    .line 2
    new-instance p1, Les/wa;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p1, v0}, Les/wa;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->i:Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment$a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment$a;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$a;)V

    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    invoke-virtual {v0, p1}, Les/wa;->b(Landroid/os/Bundle;)V

    .line 2
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V

    return-void
.end method

.method public onViewStateRestored(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePickerFragment;->q:Les/wa;

    invoke-virtual {v0, p1}, Les/wa;->a(Landroid/os/Bundle;)V

    .line 2
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onViewStateRestored(Landroid/os/Bundle;)V

    return-void
.end method
